/**
 * 统计范围内元音字符串数
 *
 * @USER: Administrator
 * @DATE: 2024/9/28 上午8:07
 * @VERSION: 1.0.0
 */
public class LC2586 {
    public static void main(String[] args) {

    }
    public int vowelStrings(String[] words, int left, int right) {
        String vowels = "aeiou";
        int result = 0;
        for (int i = left; i <= right; i++) {
            if (vowels.indexOf(words[i].charAt(0)) != -1 && vowels.indexOf(words[i].charAt(words[i].length()-1)) != -1 ) {
                result++;
            }
        }
        return result;
    }
}
